package day06;

import java.util.Scanner;

public class txt1 {
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            int num = (int) (Math.random() * 5);
            int a = (int) (Math.random() * 100) + 1;
            int b = (int) (Math.random() * 100) + 1;
            int ans = 0;
            switch (num) {
                case 0:
                    System.out.println(a + "+" + b + "=");
                    ans = (a + b);
                    break;
                case 1:
                    System.out.println(a + "-" + b + "=");
                    ans = (a - b);
                    break;
                case 2:
                    System.out.println(a + "*" + b + "=");
                    ans = (a * b);
                    break;
                case 3:
                    System.out.println(a + "/" + b + "=");
                    ans = (a / b);
                    break;
                case 4:
                    System.out.println(a + "%" + b + "=");
                    ans = (a % b);
                    break;

            }
            Scanner sc = new Scanner(System.in);
            int rs = sc.nextInt();
            System.out.println(rs == ans ? "正确" : "错误");
        }
    }
}